←Select platform

Insert(string,byte[],CacheItemPriority,string) Method

Summary

Inserts a new item to the cache store.

Syntax

C#
VB
C++
public virtual void Insert( 
   string id, 
   byte[] data, 
   CacheItemPriority priority, 
   string dependency 
) 
  
Public Overloads Overridable Sub Insert( _ 
   ByVal id As String, _ 
   ByVal data() As Byte, _ 
   ByVal priority As CacheItemPriority, _ 
   ByVal dependency As String _ 
)  
public: 
virtual void Insert(  
   String^ id, 
   array<byte>^ data, 
   CacheItemPriority priority, 
   String^ dependency 
)  

Parameters

id
A System.String that uniquely identifies the cache item to be added.

data
An array of System.Byte representing the item data.

priority
The relative precedence of the cache item expressed by System.Web.Caching.CacheItemPriority. Items with lower cache priority will be removed before items with higher priority.

dependency
A System.String to item that will be deleted when the added cache item is deleted.

Remarks

This method will always try to insert the cache item without checking if the item exists. If the item already exists in the cache the behavior of this method depends of the implementation object of the Leadtools.Medical.Caching.Storage.IStorageProvider interface.

Use the Add(string,byte[],cacheitempriority) method to check if the item exists in the cache before inserting the item.

Requirements

Target Platforms

Help Version 19.0.2017.10.27
Products | Support | Contact Us | Copyright Notices
© 1991-2017 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Medical.Caching Assembly